package com.pmcc.core.repository;

import com.pmcc.core.entity.Answer;
import com.pmcc.core.entity.SmsRecord;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by 姚楠 on 2018/11/20.
 */
public interface SmsRecordRepository extends JpaRepository<SmsRecord,String> {
    List<SmsRecord> findByTelephoneAndTemplateCodeOrderByCreateTimeDesc(String telephone,String templateCode);

}
